<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/index.xhtml">
        <ui:define name="title"/>
        <ui:define name="body">

            <h:form>
                <p:panel id="panel" header="#{bundle.ViewTblRecaudoTitle}" style="margin-bottom:5px;">
                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>

                    <h:panelGrid columns="2" cellpadding="3">
                        <h:outputText value="#{bundle.ViewTblRecaudoLabel_codRecaudo}"/>
                        <h:outputText value="#{tblRecaudoController.selected.codRecaudo}" title="#{bundle.ViewTblRecaudoTitle_codRecaudo}"/>
                        <h:outputText value="#{bundle.ViewTblRecaudoLabel_excedente}"/>
                        <h:outputText value="#{tblRecaudoController.selected.excedente}" title="#{bundle.ViewTblRecaudoTitle_excedente}"/>
                        <h:outputText value="#{bundle.ViewTblRecaudoLabel_cantParticipantes}"/>
                        <h:outputText value="#{tblRecaudoController.selected.cantParticipantes}" title="#{bundle.ViewTblRecaudoTitle_cantParticipantes}"/>
                        <h:outputText value="#{bundle.ViewTblRecaudoLabel_totalGanado}"/>
                        <h:outputText value="#{tblRecaudoController.selected.totalGanado}" title="#{bundle.ViewTblRecaudoTitle_totalGanado}"/>
                        <h:outputText value="#{bundle.ViewTblRecaudoLabel_gananciaParticipante}"/>
                        <h:outputText value="#{tblRecaudoController.selected.gananciaParticipante}" title="#{bundle.ViewTblRecaudoTitle_gananciaParticipante}"/>
                        <h:outputText value="#{bundle.ViewTblRecaudoLabel_actividad}"/>
                        <h:outputText value="#{tblRecaudoController.selected.actividad}" title="#{bundle.ViewTblRecaudoTitle_actividad}"/>
                    </h:panelGrid>
                    <br />

                    <p:commandButton action="#{tblRecaudoController.prepareCreate}" value="#{bundle.ViewTblRecaudoCreateLink}" update="panel"/>
                    <p:commandButton action="#{tblRecaudoController.prepareList}" value="#{bundle.ViewTblRecaudoShowAllLink}"/>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
